<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="../../../../2. W2104A/lib/animate.css/animate.css">
<body>
    <!-- 
        enter-class
        enter-active-class
        enter-to-class

        leave-class
        leave-active-class
        leave-to-class
     -->
     <div id="app">
        <button @click="flag=!flag">显示隐藏</button>
        <transition enter-active-class="animated bounce" leave-active-class="animated shake">
            <p v-show="flag">{{msg}}</p>
        </transition>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                msg:'台球老王子',
                flag:true
            }
        })
    </script>
</body>
</html>